package test;

import tornadoj.web.HttpContext;
import tornadoj.web.Route;
import tornadoj.web.WebModule;

/**
 * Created by tinyms on 14-2-17.
 */
@WebModule()
public class RouteTwo {
    @Route(name = "profile", paramPatterns = "\\d+")
    public void profile(HttpContext context) {
        int id = context.paramInt(0);
        context.putData("userId", id);
        context.render("testlayout.ftl");
    }
}
